package JAVACORE_TRAINING.OOPs.GENERICS.hieudao;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Vector;

public class Demo01 {
	public static void main(String[] args) {
		List<Animal> objList;
		objList = new ArrayList<Animal>();
		
		objList = new Vector<Animal>();
		
		objList = new LinkedList<Animal>();
		
		objList.add(new Animal());
		objList.add(new Fish());
	}
}

class Animal {
	
}

class Fish extends Animal {
	
}
